﻿using Newtonsoft.Json;

namespace Ecobee.Net
{
	/// <summary>
	/// This object is used to retrieve a selection of thermostat data for one or more thermostats. The type 
	/// of data retrieved is determined by the Selection object in the request. The include* properties of 
	/// the selection retrieve specific portions of the thermostat. When retrieving thermostats, request 
	/// only the parts of the thermostat you require as the whole thermostat with everything can be quite 
	/// large and generally unnecessary.
	/// </summary>
	public class ThermostatUpdate : ApiObject
	{
		private Selection _selection = null;
		private Page _page = null;

		/// <summary>
		/// Specifies the thermostats selection criteria
		/// </summary>
		[JsonProperty(PropertyName = "selection", Order = 1)]
		public Selection Selection
		{
			get
			{
				return _selection;
			}
			set
			{
				this.SetProperty(ref _selection, value);
			}
		}

		/// <summary>
		/// The page object if requesting subsequent page. Just the page property is need to indicate the page requested.
		/// </summary>
		[JsonProperty(PropertyName = "page", Order = 2, DefaultValueHandling = DefaultValueHandling.Ignore)]
		public Page Page
		{
			get
			{
				return _page;
			}
			set
			{
				_page = value;
			}
		}
	}
}
